/// currentTime : 1628155644224
/// data : [{"account":"zyid_ok0401lXIsn","active":0,"attCount":0,"avatar":"http://changxinshangwu.com:8089/u/0/0/202108/o/f7b0b15ae4114713b9040993e7644a13.png","balance":0,"createTime":1626746912,"fansCount":0,"friendsCount":0,"isAuth":0,"isCertification":false,"isFirstIn":0,"isOpenSnapchat":0,"isPasuse":0,"level":0,"loc":{"lat":0,"lng":0},"msgNum":0,"nickname":"，是，4⃣️。","noticeON":0,"num":0,"offlineNoPushMsg":0,"onlinestate":0,"redPackageMode":0,"setAccountCount":0,"sex":1,"showLastLoginTime":0,"status":1,"totalConsume":0,"totalRecharge":0,"userId":10000008,"userType":1}]
/// resultCode : 1

class SelectUser {
  int currentTime;
  List<Data> data;
  int resultCode;

  SelectUser({this.currentTime, this.data, this.resultCode});

  SelectUser.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(Data.fromJson(v));
      });
    }
    resultCode = json["resultCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["resultCode"] = resultCode;
    return map;
  }
}

/// account : "zyid_ok0401lXIsn"
/// active : 0
/// attCount : 0
/// avatar : "http://changxinshangwu.com:8089/u/0/0/202108/o/f7b0b15ae4114713b9040993e7644a13.png"
/// balance : 0
/// createTime : 1626746912
/// fansCount : 0
/// friendsCount : 0
/// isAuth : 0
/// isCertification : false
/// isFirstIn : 0
/// isOpenSnapchat : 0
/// isPasuse : 0
/// level : 0
/// loc : {"lat":0,"lng":0}
/// msgNum : 0
/// nickname : "，是，4⃣️。"
/// noticeON : 0
/// num : 0
/// offlineNoPushMsg : 0
/// onlinestate : 0
/// redPackageMode : 0
/// setAccountCount : 0
/// sex : 1
/// showLastLoginTime : 0
/// status : 1
/// totalConsume : 0
/// totalRecharge : 0
/// userId : 10000008
/// userType : 1

class Data {
  String account;
  int active;
  int attCount;
  String avatar;
  double balance;
  int createTime;
  int fansCount;
  int friendsCount;
  int isAuth;
  bool isCertification;
  int isFirstIn;
  int isOpenSnapchat;
  int isPasuse;
  int level;
  Loc loc;
  int msgNum;
  String nickname;
  int noticeON;
  int num;
  int offlineNoPushMsg;
  int onlinestate;
  int redPackageMode;
  int setAccountCount;
  int sex;
  int showLastLoginTime;
  int status;
  double totalConsume;
  double totalRecharge;
  int userId;
  int userType;

  Data(
      {this.account,
      this.active,
      this.attCount,
      this.avatar,
      this.balance,
      this.createTime,
      this.fansCount,
      this.friendsCount,
      this.isAuth,
      this.isCertification,
      this.isFirstIn,
      this.isOpenSnapchat,
      this.isPasuse,
      this.level,
      this.loc,
      this.msgNum,
      this.nickname,
      this.noticeON,
      this.num,
      this.offlineNoPushMsg,
      this.onlinestate,
      this.redPackageMode,
      this.setAccountCount,
      this.sex,
      this.showLastLoginTime,
      this.status,
      this.totalConsume,
      this.totalRecharge,
      this.userId,
      this.userType});

  Data.fromJson(dynamic json) {
    account = json["account"];
    active = json["active"];
    attCount = json["attCount"];
    avatar = json["avatar"];
    balance = json["balance"];
    createTime = json["createTime"];
    fansCount = json["fansCount"];
    friendsCount = json["friendsCount"];
    isAuth = json["isAuth"];
    isCertification = json["isCertification"];
    isFirstIn = json["isFirstIn"];
    isOpenSnapchat = json["isOpenSnapchat"];
    isPasuse = json["isPasuse"];
    level = json["level"];
    loc = json["loc"] != null ? Loc.fromJson(json["loc"]) : null;
    msgNum = json["msgNum"];
    nickname = json["nickname"];
    noticeON = json["noticeON"];
    num = json["num"];
    offlineNoPushMsg = json["offlineNoPushMsg"];
    onlinestate = json["onlinestate"];
    redPackageMode = json["redPackageMode"];
    setAccountCount = json["setAccountCount"];
    sex = json["sex"];
    showLastLoginTime = json["showLastLoginTime"];
    status = json["status"];
    totalConsume = json["totalConsume"];
    totalRecharge = json["totalRecharge"];
    userId = json["userId"];
    userType = json["userType"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["account"] = account;
    map["active"] = active;
    map["attCount"] = attCount;
    map["avatar"] = avatar;
    map["balance"] = balance;
    map["createTime"] = createTime;
    map["fansCount"] = fansCount;
    map["friendsCount"] = friendsCount;
    map["isAuth"] = isAuth;
    map["isCertification"] = isCertification;
    map["isFirstIn"] = isFirstIn;
    map["isOpenSnapchat"] = isOpenSnapchat;
    map["isPasuse"] = isPasuse;
    map["level"] = level;
    if (loc != null) {
      map["loc"] = loc.toJson();
    }
    map["msgNum"] = msgNum;
    map["nickname"] = nickname;
    map["noticeON"] = noticeON;
    map["num"] = num;
    map["offlineNoPushMsg"] = offlineNoPushMsg;
    map["onlinestate"] = onlinestate;
    map["redPackageMode"] = redPackageMode;
    map["setAccountCount"] = setAccountCount;
    map["sex"] = sex;
    map["showLastLoginTime"] = showLastLoginTime;
    map["status"] = status;
    map["totalConsume"] = totalConsume;
    map["totalRecharge"] = totalRecharge;
    map["userId"] = userId;
    map["userType"] = userType;
    return map;
  }
}

/// lat : 0
/// lng : 0

class Loc {
  double lat;
  double lng;

  Loc({this.lat, this.lng});

  Loc.fromJson(dynamic json) {
    lat = json["lat"];
    lng = json["lng"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["lat"] = lat;
    map["lng"] = lng;
    return map;
  }
}
